<template>
    <transition name="slider">
        <div class="entertainmentvideo">
            <m-header :type="1" :titleText=titleText :canreturn=true></m-header>
            <div class="wrapper">
                <div class="videobox">
                    <h3>游戏直播</h3>
                    <div class="itembox">
                        <div class="item">
                            <div class="bg">
                                <img src="../../../../static/videobg.png" alt="">
                            </div>
                            <div class="info">
                                <div class="left">
                                    <h4>吃鸡九宫格</h4>
                                    <p class="author">威兰德</p>
                                </div>
                                <div class="right">
                                    <img src="../../../../static/author.png" alt="">
                                </div>
                            </div>
                        </div>
                        <div class="item">
                            <div class="bg">
                                <img src="../../../../static/videobg.png" alt="">
                            </div>
                            <div class="info">
                                <div class="left">
                                    <h4>吃鸡九宫格</h4>
                                    <p class="author">威兰德</p>
                                </div>
                                <div class="right">
                                    <img src="../../../../static/author.png" alt="">
                                </div>
                            </div>
                        </div>
                        <div class="item">
                            <div class="bg">
                                <img src="../../../../static/videobg.png" alt="">
                            </div>
                            <div class="info">
                                <div class="left">
                                    <h4>吃鸡九宫格</h4>
                                    <p class="author">威兰德</p>
                                </div>
                                <div class="right">
                                    <img src="../../../../static/author.png" alt="">
                                </div>
                            </div>
                        </div>
                        <div class="item">
                            <div class="bg">
                                <img src="../../../../static/videobg.png" alt="">
                            </div>
                            <div class="info">
                                <div class="left">
                                    <h4>吃鸡九宫格</h4>
                                    <p class="author">威兰德</p>
                                </div>
                                <div class="right">
                                    <img src="../../../../static/author.png" alt="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </transition>

</template>

<script>
import Slider from '@/base/slider/slider';
import MHeader from 'components/m-header/m-header';
// import { getIndexInfo } from '@/base/api/indexpage/getindexinfo';

export default {
    data() {
        return {
            titleText: '视频',
        };
    },
    components: {
        Slider,
        MHeader,
    },
};
</script>
<style scoped lang="stylus" rel="stylesheet/stylus">
@import '~common/stylus/variable';
@import '~common/stylus/mixin';

slider();

.entertainmentvideo {
    position: fixed;
    width: 100%;
    top: 0;
    bottom: 0;
    background: #eeeeee;

    .wrapper {
        padding: 0 15px;
        box-sizing: border-box;

        .videobox {
            width: 100%;

            h3 {
                color: #222;
                font-weight: bold;
                position: relative;
                text-indent: 6px;
                padding: 15px 15px 15px 12px;

                &:before {
                    content: '';
                    display: block;
                    width: 8px;
                    height: 16px;
                    background: #ffc400;
                    position: absolute;
                    top: 14px;
                    left: 0;
                    border-radius: 8px 0 0 8px;
                }
            }

            .itembox {
                display: flex;
                flex-wrap: wrap;

                .item {
                    width: 49%;
                    margin-right: 2%;
                    margin-bottom: 20px;

                    &:nth-child(2n) {
                        margin-right: 0;
                    }

                    .bg {
                        width: 100%;
                        border-radius: 5px;
                        overflow: hidden;

                        img {
                            width: 100%;
                            display: block;
                        }
                    }

                    .info {
                        width: 100%;
                        font-size: $font-size-small;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;

                        .left {
                            width: 80%;

                            h4 {
                                color: #222222;
                                font-weight: bold;
                                line-height: 36px;
                            }

                            p {
                                color: #555555;
                            }
                        }

                        .right {
                            width: 30px;
                            height: 30px;
                            overflow: hidden;
                            border-radius: 50%;

                            img {
                                display: block;
                                width: 100%;
                            }
                        }
                    }
                }
            }
        }
    }
}
</style>

